package com.itheima.Demo4Param;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class CollectionsDemo1
{
    public static void main(String[] args) {
        //用Collections批量加数据
        List<String> list = new ArrayList<>();
        Collections.addAll(list,"张三","李四","王五","赵六","田七");
        //打乱顺序
        Collections.shuffle(list);
    }
}
